public class can_be_3and5aliquot {


    public static void main(String[] args) {
        int n=1;
        while(n<=100){
          if(n%15!=0){
              n++;
              continue;
          }
            System.out.println(n );
             n++;
        }
    }

    public static void main1(String[] args) {
        int n=1;
        while(n<=100){
            while(n<=100){
                if(n%15==0) {
                    System.out.println(n);
                    n++;
                    break;
                }
                n++;
            }
        }

    }











}
